package cn.ilovese.collect.po.report;

import cn.ilovese.collect.vo.report.CoordinationVO;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@NoArgsConstructor
public class Coordination {
    private Integer id;

    private Integer fatherId;

    private Integer childrenId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFatherId() {
        return fatherId;
    }

    public void setFatherId(Integer fatherId) {
        this.fatherId = fatherId;
    }

    public Integer getChildrenId() {
        return childrenId;
    }

    public void setChildrenId(Integer childrenId) {
        this.childrenId = childrenId;
    }

    public Coordination(@NonNull CoordinationVO coordinationVO){
        fatherId = coordinationVO.getFatherId();
        childrenId = coordinationVO.getChildrenId();
    }

    public Coordination(Integer father_id, Integer son_id){
        fatherId = father_id;
        childrenId = son_id;
    }

}